package com.lihao.wanandroid.app.weight.banner

import android.view.View
import android.widget.TextView
import com.lihao.wanandroid.R
import com.zhpan.bannerview.holder.ViewHolder

class SplashViewHolder : ViewHolder<String> {

    override fun getLayoutId(): Int {
        return R.layout.banner_item_splash
    }

    override fun onBind(itemView: View?, data: String?, position: Int, size: Int) {
        val bannerText = itemView?.findViewById<TextView>(R.id.bannerText)
        bannerText?.text = data
    }

}